package com.itheima.service.impl;

import com.itheima.mapper.FrontMenusMapper;
import com.itheima.pojo.Category;
import com.itheima.pojo.FrontMenus;
import com.itheima.service.FrontMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class FrontMenusServiceImpl implements FrontMenusService {
    @Autowired
    private FrontMenusMapper frontMenusMapper;
    @Override
    public void add(FrontMenus frontMenus){
        frontMenusMapper.add(frontMenus);
    }
    @Override
    public List<FrontMenus> list(){
        return frontMenusMapper.list();
    }
    @Override
    public void update(FrontMenus frontMenus) {
        frontMenusMapper.update(frontMenus);

    }
    public  void delete(FrontMenus frontMenus){
        frontMenusMapper.delete(frontMenus);
    }
}
